package com.health.db.dao.order;

import java.util.List;

import com.health.db.model.RegisterOrder;
import com.health.db.model.RegisterOrderExample;

public interface IRegisterOrderDao {
	
	 List<RegisterOrder> selectSimple( RegisterOrderExample example);

	 int insert( RegisterOrder record);
	 
	 int updateOrderSelective(RegisterOrder record) ;
	 
	 RegisterOrder  selectSimpleSingleByOrderId(Long registerid);
	 
	 int updateOrderState4Timeout(RegisterOrder record) ;
 
	 //订单超时专用
	 List<RegisterOrder> selectOrderState4Timeout(RegisterOrderExample example);

	 List<RegisterOrder> selectSimpleByEvaluate(Long docId);

	 //RegisterOrder  selectSimpleSingleByOrderIdForUpdate(Long registerid);
	 
	 List<RegisterOrder> selectSimpleOrderGrapPool(RegisterOrderExample example);
	 
	 boolean orderAcceptLocked(Long registerid,int type);
	 
	 int updateOrderForQuit(RegisterOrder record);
	 
}
